import request from '@/utils/request'

// 查询refundOrder列表
export function listRefundOrder(query) {
  return request({
    url: '/costumeShop/refundOrder/list',
    method: 'get',
    params: query
  })
}

// 查询refundOrder详细
export function getRefundOrder(refundOrderId) {
  return request({
    url: '/costumeShop/refundOrder/' + refundOrderId,
    method: 'get'
  })
}

// 新增refundOrder
export function addRefundOrder(data) {
  return request({
    url: '/costumeShop/refundOrder',
    method: 'post',
    data: data
  })
}

// 修改refundOrder
export function updateRefundOrder(data) {
  return request({
    url: '/costumeShop/refundOrder',
    method: 'put',
    data: data
  })
}

// 删除refundOrder
export function delRefundOrder(refundOrderId) {
  return request({
    url: '/costumeShop/refundOrder/' + refundOrderId,
    method: 'delete'
  })
}
